package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_dingass;

import cn.com.api.mapper.ApiT_dingassMapper;

import cn.com.api.service.ApiT_dingassService;

/**
 * 
 **/
@Service
public class T_dingassServiceImplBase {
	@Autowired
	private ApiT_dingassMapper apiT_dingassMapper;

	// 根据id获取
	public ApiT_dingass findT_dingassById(Integer id) {
		ApiT_dingass t_dingass = apiT_dingassMapper.findT_dingassById(id);
		return t_dingass;
	}

	// 查看数据集
	public List<ApiT_dingass> findT_dingasss() {
		List<ApiT_dingass> t_dingasss = apiT_dingassMapper.findT_dingasss();
		return t_dingasss;
	}

	// 添加
	public int insertT_dingass(ApiT_dingass t_dingass) {
		int ret_I = apiT_dingassMapper.insertT_dingass(t_dingass);
		return ret_I;
	}

	// 修改
	public int updateT_dingass(ApiT_dingass t_dingass) {
		int ret_I = apiT_dingassMapper.updateT_dingass(t_dingass);
		return ret_I;
	}

	// 删除
	public int deleteT_dingass(Integer id) {
		int ret_I = apiT_dingassMapper.deleteT_dingass(id);
		return ret_I;
	}

}
